<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	  xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">

<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>活动审核</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <link rel="stylesheet" href="../../static/plugins/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="../../static/plugins/adminLTE/css/AdminLTE.css">
    <link rel="stylesheet" href="../../static/plugins/adminLTE/css/skins/_all-skins.min.css">
    <link rel="stylesheet" href="../../static/css/style.css">
	<script src="../../static/plugins/jQuery/jquery-2.2.3.min.js"></script>
    <script src="../../static/plugins/bootstrap/js/bootstrap.min.js"></script>

	<script type="text/javascript" src="../../static/plugins/angularjs/angular.min.js"></script>
	
	<script type="text/javascript" src="../../static/js/base.js"></script>
	<script type="text/javascript" src="../../static/js/service/ActivityService.js"></script>
	<script type="text/javascript" src="../../static/js/controller/baseController1.js"></script>
	<script type="text/javascript" src="../../static/js/controller/ActivityController.js"></script>

	<script th:src="@{/static/js/base.js}"></script>
	<script th:src="@{/static/js/service/ActivityService.js}"></script>
	<script th:src="@{/static/js/controller/baseController1.js}"></script>
	<script th:src="@{/static/js/controller/ActivityController.js}"></script>
	<script th:src="@{/static/plugins/angularjs/angular.min.js}"></script>
	<script th:src="@{/static/plugins/jQuery/jquery-2.2.3.min.js}"></script>

	<!--<script>
		var app=angular.module('credit',[]);
		app.controller('departmentController',function($scope,$http){
			//未审核
			$scope.findstatus=function () {
				$http.get('http://localhost:9091/department/findstatus').success(
						function (response) {
							$scope.list=response;
						}
				)
			}

		})



	</script>-->
	
</head>

<body class="hold-transition skin-red sidebar-mini" ng-app="credit" ng-controller="ActivityController" ng-init="findstatus()">
  <!-- .box-body -->
                <div class="box box-primary">
                    <div class="box-header with-border">
                        <h3 class="box-title">活动审核</h3>
                    </div>

                    <div class="box-body">

                        <!-- 数据表格 -->
                        <div class="table-box">
                            <!--工具栏/-->

			                  <!--数据列表-->
			                  <table id="dataList" class="table table-bordered table-striped table-hover dataTable">
			                      <thead>
								  <tr>
									  <th class="" style="padding-right:0px">
										  <input id="selall" type="checkbox" class="icheckbox_square-blue">
									  </th>
									  <th class="sorting_asc">单位</th>
									  <th class="sorting">所属板块</th>
									  <th class="sorting">活动时间</th>
									  <th class="sorting">活动名称</th>
									  <th class="sorting">承办部门</th>
									  <th class="sorting">指导老师</th>
									  <th class="sorting">活动策划人</th>
									  <th class="sorting">活动主要组织者</th>
									  <th class="text-center">操作</th>
								  </tr>
			                      </thead>
			                      <tbody>
			                          <tr ng-repeat="entity  in  list">
			                              <td><input  type="checkbox"></td>			                              
				                          <td>{{entity.company}}</td>
									      <td>{{entity.belong}}</td>
									      <td>{{entity.time}}</td>
									      <td>{{entity.aname}}</td>
										  <td>{{entity.info}}</td>
										  <td>{{entity.teacher}}</td>
										  <td>{{entity.idea}}</td>
										  <td>{{entity.organizer}}</td>
		                                 
		                                  <td class="text-center">                                           
		                                 	  <button type="button" class="btn bg-olive btn-xs" data-toggle="modal" data-target="#sellerModal" ng-click="findOneBystatus(entity.id)" >详情</button>                                           
		                                  </td>
			                          </tr>
			                      </tbody>
			                  </table>
							 
                        </div>
                        <!-- 数据表格 /-->
                        
                        
                        
                        
                     </div>
                    <!-- /.box-body -->
                    
	          
					    
                                
<!-- 详情 -->
<div class="modal fade" id="sellerModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-lg" >
	<div class="modal-content">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
			<h3 id="myModalLabel">活动详情</h3>
		</div>
		<div class="modal-body">							
			
			 <ul class="nav nav-tabs">
			  <li class="active"><a href="#home" data-toggle="tab">活动概要</a></li>
			  <li><a href="#linkman" data-toggle="tab">活动策划</a></li>
			  
			</ul>							
			
			<!-- 选项卡开始 -->         
		    <div id="myTabContent" class="tab-content">
			    <div class="tab-pane active in" id="home">
			      <br>
			      <table class="table table-bordered table-striped"  width="800px">
			      	<tr>
			      		<td>单位</td>
			      		<td>{{entity.company}}</td>
			      	</tr>
			      	<tr>
			      		<td>所属板块</td>
			      		<td>{{entity.belong}}</td>
			      	</tr>
			      	<tr>
			      		<td>承办部门</td>
			      		<td>{{entity.info}}</td>
			      	</tr>
			      	
			      </table>			      
      			</div>	
			    <div class="tab-pane fade" id="linkman">
			    	<br>
					<table class="table table-bordered table-striped" >
			      	<tr>
			      		<td>活动名称</td>
			      		<td>{{entity.aname}}</td>
			      	</tr>
			      	<tr>
			      		<td>活动策划人</td>
			      		<td>{{entity.idea}}</td>
			      	</tr>
			      	<tr>
			      		<td>活动主要组织者</td>
			      		<td>{{entity.organizer}}</td>
			      	</tr>
			      	<tr>
			      		<td>指导老师</td>
			      		<td>{{entity.teacher}}</td>
			      	</tr>
			      	<tr>
			      		<td>活动时间</td>
			      		<td>{{entity.time}}</td>
			      	</tr>
			      	
			      </table>
			    </div>
			   
			    
			    
  			    </div> 			
           <!-- 选项卡结束 -->          
			
			
		</div>
		<div class="modal-footer">						
			<button class="btn btn-success" data-dismiss="modal" aria-hidden="true" ng-click="updateStatus(entity.id,'1')" >审核通过</button>
         	<button class="btn btn-danger"  data-dismiss="modal" aria-hidden="true" ng-click="updateStatus(entity.id,'3')" >审核未通过</button>
			<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">关闭</button>
		</div>
	  </div>
	</div>
</div>
</div>

</body>

</html>